import request from './request'

// 获取新闻分类
export function getNewsCategories(){
  return request({
    method: "POST",
    url: '/api/common/get_news_cate_list',
  });
}

// 获取新闻列表
export function getNewsList(data){
  return request({
    method: "POST",
    url: '/api/common/get_news_list',
    data
  });
}

// 获取新闻列表
export function getHotNewsList(){
  return request({
    method: "POST",
    url: '/api/common/get_hot_news_list',
  });
}

// 获取新闻详情
export function getNewsDetail(data){
  return request({
    method: "POST",
    url: '/api/common/get_news_info',
    data
  });
}
